package jwr.basic;

public class J13_Q77_Books_OOP {

	public static void main(String[] args) {
		//도서관리시스템
		J13_Book book = 
				new J13_Book(1,"누구나 알기 쉬운 java","혜지원","카와바 타케시",
						"미스테리 스릴러","22500",false,"2014-7-24 10:00");
		J13_Book[] books =new J13_Book[5];
		//대여한 책을 저장하기 위해 배열선언
		books[0] = book; // 대여한 책을 배열에 저장
		J13_Member member = new J13_Member(1, 1000, "홍길동", "010-111-2222", "서울시 구로구",books);
		System.out.println(book.printBook());
	}//main

}//class

class J13_Book{
	private int bookNo;
	private String bookName,
	Publisher, 
	author, 
	price, 
	regDate, 
	genre;
	private boolean isRent;
	public J13_Book(int bookNo,String bookName,String publisher,String author,String genre,String price, boolean isRent, String regDate) {
		this.bookNo=bookNo;
		this.bookName=bookName;
		this.Publisher =publisher;
		this.author = author;
		this.genre = genre;
		this.price = price;
		this.isRent = isRent;
		this.regDate = regDate;
	}
	
	public String printBook(){
		String bookInfo="";
		bookInfo += "책 번호 : "+bookNo;
		bookInfo += "\n도서명 : "+bookName;
		bookInfo += "\n출판사 : "+Publisher;
		return bookInfo;
	}
}

class J13_Member{
	private int memNo,
	mileage;
	private String memName, 
	memTel, 
	memAddr;
	private J13_Book rBooks[];
	public J13_Member(int memNo,int mileage, String memName, String memTel,String memAddr,J13_Book[] rbooks) {
		this.memNo = memNo;
		this.mileage = mileage;
		this.memAddr = memAddr;
		this.memName = memName;
		this.memTel = memTel;
		this.rBooks = rbooks;
	}
}

class Employee{
	private int empNo;
	private String empName, 
	empTel, 
	empAddr, 
	empPass, 
	empLogin, 
	empLogout;
	public Employee() {
	}
}